//
//  WDHomeController.swift
//  SINAWeiBo
//
//  Created by wangwei on 2016/11/12.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class WDHomeController: WDBaseNoLoginController {

    override func viewDidLoad() {
        super.viewDidLoad()
//MARK:
//MARK: 设置UI界面
        setupUI()
        
        

    }

//MARK:
//MARK: 设置UI界面
    func setupUI() {
    
        //MARK:
//MARK: 1:在控制器rightBarButtonItem 上面添加一个item 实现向右push
        addHomeRightItem()
    
    }
    
    func addHomeRightItem() {
        
        let rightItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: #selector(rightItemClick))
        navigationItem.rightBarButtonItem = rightItem
        
    }
    
   func rightItemClick() {
        
        let vc  = WDHomeDemoController()
        navigationController?.pushViewController(vc, animated: true)
    
    }


}
